﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EstevesRecordersProject
{
    public enum StatisticEnum
    {
        WorkTime = 1,
        IdleTime = 2,
        WorkTimeLongerThan = 3,
        IdleTimeLongerThan = 4
    }

    static class StatisticEnumExtension
    {
        public static string toString(this StatisticEnum c)
        {

            string retVal = "";

            switch (c)
            {
                case StatisticEnum.WorkTime:
                    return "Worktime";

                case StatisticEnum.IdleTime:
                    return "Idle time";

                case StatisticEnum.WorkTimeLongerThan:
                    return "Work time longer than ...";

                case StatisticEnum.IdleTimeLongerThan:
                    return "Idle time longer than ...";

                default:
                    return c.ToString();
            }
        }
    }
    
}
